﻿<%@ Page Language="C#" MasterPageFile="~/HotelMain.master" AutoEventWireup="true" CodeFile="OrderHotel.aspx.cs" Inherits="OrderHotel" Title="酒店预定" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

     <link href="css/validator.css" rel="stylesheet" type="text/css" />

    <script src="js/formValidator.js" type="text/javascript" language="javascript"></script>

    
      <div class="jdb">
                    <div class="jdb2">
                        <div class="pic5">
                            <img src='<%=modelTemp.imagePath %>' width="200" height="142" /></div>
                        <div class="jsb2">
                            <p>
                                <span class="mcb"><%=modelTemp.title %></span></p>
                            <p>
                               酒店地址：<%=modelTemp.address %></p>
                            <p><table style="border-collapse:0px; border-spacing:0px;"><tr><td>星级标准：</td<td><div style="background-repeat: repeat-x; background-image: url(images/xing.jpg);
                                background-position: left; width:<%=GetPicWidth(modelTemp.starNum)%>px; height: 12px;
                                border: 0px;"></div></td></tr></table>
                                </p>
                            <p>
                                <span class="jgb">特 价 房：<span class="smb"><%=modelTemp.price%></span>&nbsp;元/晚</span></p>
                        </div>
                          <div class="wzb2">
   
                        <p>
                            预定姓名：
                            <input id="txtOrderName" type="text" runat="server" class="aa" />
                            <span class="red">*</span>(联系人)&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;性
                            别：
                            <label>
                                <asp:RadioButton ID="radioBoy" Checked="true" runat="server" GroupName="sex" />
                                男</label>
                            <label>
                                <asp:RadioButton ID="radioGril" runat="server" GroupName="sex" />
                                女</label>
                            <br />
                        </p>
                        <p>
                            联系手机：
                            <label>
                                <input type="text" runat="server" id="txtPhone" class="bb" />
                            </label>
                            &nbsp;<span class="red">*</span> &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;
                            &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 联系电话：
                            <label>
                                <input type="text" runat="server" id="txtTel" class="bb" />
                            </label>
                            <span class="red"></span>
                        </p>
                        <p>
                            预定人数：
                            <label>
                                <input type="text" runat="server" id="txtOrderNum" class="aa" />
                            </label>
                            <span class="red">*</span></p>
                        <p>
                            预定日期：
                            <label>
                            <script language="javascript" type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
                                <input type="text" id="txtDate" runat="server"  class="Wdate" onClick="WdatePicker()"/>
                            </label>
                        </p>
                        <p>
                            <span style="vertical-align: top">特别要求：</span>
                            <label>
                                <textarea runat="server" id="txtDes" cols="45" rows="10" class="cc"></textarea>
                            </label>
                        </p>
                        <p class="tj">
                            <asp:ImageButton ID="btnSubmit" ImageUrl="images/4_a3.jpg" runat="server" OnClientClick="return jQuery.formValidator.PageIsValid('1');"
                                OnClick="btnSubmit_Click" />
                        </p>
                
                    </div>
                        <div class="yema">
                            <span class="yema2">
                                <img src="images/chujing_65.jpg" width="14" height="13" /><a href="#" onclick="window.scrollTo(0,0);">回到顶部</a></span>
                        </div>
                    </div>
                </div>
      
    <script language="javascript" type="text/javascript">
$(document).ready(function(){
$.formValidator.initConfig({onError:function(msg){alert(msg)}});
      $("#ctl00_ContentPlaceHolder1_txtOrderName").formValidator({onshow:"请输入",onfocus:"不能为空",oncorrect:"合法"}).InputValidator({min:1,onerror:"姓名不能为空,请确认"});
            $("#ctl00_ContentPlaceHolder1_txtOrderNum").formValidator({onshow:"请输入",onfocus:"不能为空",oncorrect:"合法"}).InputValidator({min:1,onerror:"预定数量不能为空,请确认"});
         $("#ctl00_ContentPlaceHolder1_txtPhone").formValidator({onshow:"请输入",onfocus:"不能为空",oncorrect:"合法"}).InputValidator({min:1,onerror:"联系电话不能为空,请确认"});

});
    </script>
</asp:Content>

